package com.panshi.modules.system.error;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author :jiege
 * @description :
 * @create :2020-08-07 19:24:00
 */
@Controller
@Api(tags = "错误页面返回接口")
public class SysError {

    @GetMapping("/404")
    @ApiOperation(value = "404页面")
    public String error404(){
        System.out.println("我是404 我进来了 =================");
        return "/error/404";
    }

    @GetMapping("/500")
    @ApiOperation(value = "500页面")
    public String error500(){
        return "/error/500";
    }

    @GetMapping("/unauth")
    @ApiOperation(value = "权限不足页面")
    public String errorunauth(){
        return "/error/unauth";
    }

}
